﻿using System;
using System.Collections.Generic;

using System.Text;
using System.IO;

namespace ShapeMergeFactory
{
   internal class ShapeBinaryWriter:BinaryWriter
    {
        public ShapeBinaryWriter(Stream streamType)
            :base(streamType)
        {

        }

        public void BinaryWriteBigEndian(int value)
        {
            byte[] TempBytes = System.BitConverter.GetBytes(value);
            Array.Reverse(TempBytes);
            this.Write(TempBytes, 0, TempBytes.Length);
        }
    }
}
